// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently

#pragma once

#ifndef _SECURE_ATL
#define _SECURE_ATL 1
#endif

#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers
#endif

// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER				// Allow use of features specific to Windows XP or later.
#define WINVER 0x0501		// Change this to the appropriate value to target other versions of Windows.
#endif

#ifndef _WIN32_WINNT		// Allow use of features specific to Windows XP or later.                   
#define _WIN32_WINNT 0x0501	// Change this to the appropriate value to target other versions of Windows.
#endif						

#ifndef _WIN32_WINDOWS		// Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
#endif

#ifndef _WIN32_IE			// Allow use of features specific to IE 6.0 or later.
#define _WIN32_IE 0x0600	// Change this to the appropriate value to target other versions of IE.
#endif

#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS	// some CString constructors will be explicit

// turns off MFC's hiding of some common and often safely ignored warning messages
#define _AFX_ALL_WARNINGS

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions


#include <afxdisp.h>        // MFC Automation classes



#ifndef _AFX_NO_OLE_SUPPORT
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#endif
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT


#include <afxsock.h>		// MFC socket extensions

#include <comutil.h>

#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF","adoEOF")
#include <afxdlgs.h>

//#include <afxcontrolbars.h>

#define LOGIC_DOT_PER_MM	10
#define MM_A4_WIDTH		297
#define MM_A4_HEIGHT	210

#define IDC_FMCTRL_1  0x3100
#define IDC_FMCTRL_MAIN 0x3200
#define IDC_BEDCTRL_1 0x3300
#define IDC_DELICTRL  0x3400
#define IDC_ANALCTRL  0x3500
#define IDC_FHRCTRL_1 0x3600
#define IDC_PREPRINT_CTRL	0x3700

#define MSG_FMDATA_CHANGE			(WM_USER+100)
#define MSG_FMCTRL_DBL_CLICK		(WM_USER+101)
#define MSG_FMCTRL_ALARM			(WM_USER+102)
#define MSG_RELAYOUT				(WM_USER+103)
#define MSG_BEDCTRL_UPDATE_MONITOR_STATE	(WM_USER+104)
#define MSG_FHRCTRL_UPDATE_FHR		(WM_USER+105)
#define MSG_TIP_SELECTED			(WM_USER+107)
#define MSG_MAIN_PRINT_PAGE			(WM_USER+109)


#define IDC_BT_ALARM				0x4301
#define IDC_BT_NEWPATIENT			0x4302
#define IDC_BT_BEDNO				0x4303
#define IDC_BT_RECORD				0x4401
#define IDC_BT_ANAL						0x4501
#define IDC_BT_LABOR					0x4503
#define IDC_BT_PRINT_FMDATA				0x4505
#define IDC_BT_PRINT_FMREPORT			0x4507
#define IDC_BT_PRINT_LABOR				0x4509
#define IDC_BT_PRINT_ANALREPORT			0x4511
#define IDC_BT_PRINT_FMDATA_MULTI_PAGE	0x4513
#define IDC_BT_FMCTRL_PLAY_BACK			0x4515
#define IDC_BT_FMCTRL_PLAY_FORWORD		0x4517
#define IDC_BT_FMCTRL_PLAY_STOP			0x4519

#define HISTORY_CTRL_ADDR	0x12345678

#define ANAL_METHOD_FISCHER 0x00
#define ANAL_METHOD_KREBS	0x01
#define ANAL_METHOD_NST		0x02
#define ANAL_METHOD_CST		0x03

#define ALARMTYPE_IMAGE		0x1
#define ALARMTYPE_SOUND		0x2

#define ZOOM_RATIO_BEDCTRL	0.5
#define ZOOM_RATIO_PRINT	0.7

#define SAVE_FLAG_STUDY			0x1
#define SAVE_FLAG_LABOR_STAGE	0x2
#define SAVE_FLAG_CERV_PRES		0x4
#define SAVE_FLAG_ANAL_RESULT	0x8
#define SAVE_FLAG_LABEL			0x10

#define BASE_YEAR				2010

//#define  USE_MYSQL  1

#ifdef _UNICODE
#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_IA64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif
#endif


